package com.ice.work.moment.gateway.controller;

import com.honeybee.cloud.framework.gateway.fallback.IFallBackController;
import com.honeybee.cloud.framework.gateway.fallback.FallBackResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author DELL
 * @Create 2019-02-14
 * @Since 1.0.0
 */

@RestController
@Slf4j
public class FallbackController implements IFallBackController {
    @Override
    public FallBackResult fallback() {
        log.error("服务异常");
        return FallBackResult.error(90000,"系统繁忙");
    }
}
